package com.htc.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class Encodes {
	private static final String DEFAULT_URL_ENCODING = "UTF-8";
	 public static String urlEncode(String part) {
	        String str = null;
	        try {
	            str = URLEncoder.encode(part, DEFAULT_URL_ENCODING);
	        } catch (UnsupportedEncodingException e) {
	            e.printStackTrace();
	        }
	        return str;
	    }
	
}
